-- GENERATED SPELL FOR [Warsong Hold Grunt] --


function spell0_29942(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(19643,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29942', 5309, 1)
end

function spell1_29942(pUnit, Event) --@Snap Kick,n/a--
pUnit:FullCastSpellOnTarget(15618,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29942', 2298, 1)
end

function Sorts_29942(pUnit, Event)
local choix_sorts_29942 = math.random(0, 1)
if choix_sorts_29942 == 0 then
pUnit:RegisterEvent('spell0_29942', 1, 1)
end
if choix_sorts_29942 == 1 then
pUnit:RegisterEvent('spell1_29942', 1, 1)
end
end

function mob29942_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29942', math.random(1500, 3000), 1)
end

function mob29942_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29942_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29942_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29942, 1, 'mob29942_Action')
RegisterUnitEvent(29942, 2, 'mob29942_Leave')
RegisterUnitEvent(29942, 3, 'mob29942_Kill')
RegisterUnitEvent(29942, 4, 'mob29942_Die')
